警告:这个程序有一个逻辑错误!它不会创建错误消息,但它没有做它应该做的事情。

规则: del使用冒号删除一系列索引,如下所示: del my_list [ start_index : end_index ]

  • 点击运行并读取控制台中的输出。一项不属于此列表!
  • 通过更改del中的索引范围以仅从列表中删除54来修复程序。
  • 点击运行以查看您是否修复了该程序。固定好后点击提交接下来

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)